<!DOCTYPE html>
<html lang="cn">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <script>
        var a = '12345,';
        var b = '上山打老虎';
        var c = a + b;

        var o = '呵呵哒';
        var str1 = 'ohello,\n I xuan ni';
        var str2 = "ohello,\n I xuan ni";

        console.log(a, b);
        console.log(c);

        console.log(str1);
        console.log(str2);

        // ES 6   ``  反引号
        var msg = `
            <img src="./1.jpg" width="250">
            <p>老张说:"这招图片真'好看'啊"</p>
            <p>老李说:"还阔以...."</p>
        `;
        document.write(msg);

        // x * y = z
        var x = 66, y = 22;
        console.log(`${x} x ${y} = ${x*y}`);

    </script>
</head>
<body>
    <h1>JS 字串</h1>
    <hr>
</body>
</html>



